using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PauseUI : MonoBehaviour
{
    private Animator anim;
    

    // Start is called before the first frame update
    void Start()
    {
        
        anim= GetComponent<Animator>();
    }

    // Update is called once per frame
    

    public void OnPauseClick()
    {
        Time.timeScale = 0;
        anim.SetBool("Isshow", true);
    }
    public void OnContinueClick()
    {
        Time.timeScale = 1;
        anim.SetBool("Isshow",false);
    }
    public void OnRestartClick()
    {
        GameManager.Instance.OnReStart();
    }
    public void OnListClick()
    {
        GameManager.Instance.LevelList();
    }
}
